
import Vue from "vue";
import App from "./App.vue";
import router from "@/router";
import store from "@/store";
import '@/mock/mockServer'
import * as API from '@/api'

// 全局引入表单验证
import '@/plugins/validata'

Vue.config.productionTip = false;

import {
  Button,
  MessageBox,
  Message,
  Carousel,
  CarouselItem,
  Loading
} from 'element-ui';
Vue.use(Button);
Vue.use(Carousel);
Vue.use(CarouselItem);
Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;
new Vue({
  beforeCreate(){
    Vue.prototype.$bus = this
    Vue.prototype.$API = API
  },
  render: (h) => h(App),
  router,
  store,
  
}).$mount("#app");
